#!/bin/bash

if [ $1 = "cache" ]; then 

echo The search results based on $1 are:
grep $1 /proc/cpuinfo

elif [ $1 = "MHz" ]; then

echo The search results based on $1 are:
grep $1 /proc/cpuinfo

else

echo The parameter you have entered is not valid. Please try again.

fi

